package com.yuexunit.finance.system.action.v1.dto;

import com.yuexunit.finance.statistics.action.v1.model.CostTypeDetail;
import com.yuexunit.finance.system.entity.CostEntity;



public class SystemParamDetailCost {
	public static CostEntity toCostEntity(CostTypeDetail detail) {
		CostEntity costEntity=new CostEntity();
		costEntity.setCharges_ID(detail.getCharges_ID());
		costEntity.setCharges_sort(detail.getCharges_sort());
		costEntity.setCharges_name(detail.getCharges_name());
		costEntity.setCurType(detail.getCurType());
		costEntity.setMoney(detail.getMoney());
		costEntity.setApplication(detail.getApplication());
		costEntity.setDate(detail.getDate());
		return costEntity;
		
	}
	public static  CostTypeDetail toCostDetail(CostEntity Entity) {
		CostTypeDetail typeDetail=new CostTypeDetail();
		typeDetail.setCharges_ID(Entity.getCharges_ID());
		typeDetail.setCharges_sort(Entity.getCharges_sort());
		typeDetail.setCharges_name(Entity.getCharges_name());
		typeDetail.setCurType(Entity.getCurType());
		typeDetail.setMoney(Entity.getMoney());
		typeDetail.setApplication(Entity.getApplication());
		typeDetail.setDate(Entity.getDate());
		return typeDetail;
		
		
	}
}
